package cn.wolfcode.crm.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {
    private Long id;

    private String name;

    private String sn;

    private List<Permission> list = new ArrayList();

    public Role(String name, String sn) {
        this.name = name;
        this.sn = sn;
    }
}